//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_checkmtsidehd.sqf"
#include "x_setup.sqf"

//[unit, selectionName, damage, source, projectile]
__TRACE_1("_this","_this")

private ["_object","_sel", "_dmg","_ammo","_val"];
_object = _this select 0;
_sel = _this select 1;
_dmg = _this select 2;
_ammo = _this select 4;

if (_sel == "" && _dmg > 0.02 && {toUpper(getText(configFile/"CfgAmmo"/_ammo/"simulation")) in GVAR(hd_sim_types)}) then {
	_dmg = _dmg * 4;
};
__TRACE_1("_dmg","_dmg");
_dmg